﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="webSet.aspx.cs" Inherits="PeisongWeb.admin.webSet" %>

<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>
<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <!--#include file="style.inc"-->
</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <uc1:top ID="Top1" runat="server" />
    <uc2:menu ID="Menu1" runat="server" />
    <div id="admin-body">
        <ext:Panel ID="Panel2" runat="server" Title="网站设置" BodyStyle="padding:5px 5px 0"
            Width="550" Frame="true" ButtonAlign="Center">
            <Body>
                <div id="admin_edit_content">
                    <ul>
                        <li>
                            <label style="width: 120px">
                                网站开启</label>
                            <asp:RadioButton runat="server" ID="rbn_WebOnYes" GroupName="webOn" />是
                            <asp:RadioButton runat="server" ID="rbn_WebOnNo" GroupName="webOn" />否 </li>
                        <li>
                            <label style="width: 120px">
                                最小金额</label>
                            <asp:TextBox runat="server" ID="txt_MinAmount" Width="50"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入最小金额"
                                ControlToValidate="txt_MinAmount" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txt_MinAmount"
                                Display="Dynamic" ErrorMessage="应为整数" ValidationExpression="\d{1,3}">
                            </asp:RegularExpressionValidator>
                        </li>
                        <li>
                            <label style="width: 120px">
                                最小税费</label>
                            <asp:TextBox runat="server" ID="txt_MinTax" Width="50"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入最小税费"
                                ControlToValidate="txt_MinTax" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txt_MinTax"
                                Display="Dynamic" ErrorMessage="应为整数" ValidationExpression="\d{1,3}"></asp:RegularExpressionValidator>
                        </li>
                        <li>
                            <label style="width: 120px">
                                刷新时间</label>
                            <asp:TextBox runat="server" ID="txt_RefreshMintue" Width="50"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请输入刷新时间"
                                ControlToValidate="txt_RefreshMintue" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txt_RefreshMintue"
                                Display="Dynamic" ErrorMessage="应为数字" ValidationExpression="\d{1,4}"></asp:RegularExpressionValidator>
                        </li>
                        <li>
                            <label style="width: 120px">
                                提货单生成时间</label>
                            <asp:TextBox runat="server" ID="txt_deliveryDocCreate" Width="50"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="请输入提货单生成时间"
                                ControlToValidate="txt_deliveryDocCreate" Display="Dynamic"></asp:RequiredFieldValidator>
                        </li>
                        <li>
                            <label style="width: 120px">
                                开启自动加价</label>
                            <asp:RadioButton runat="server" ID="rbn_autoAddPriceYes" GroupName="autoAddPrice" />是
                            <asp:RadioButton runat="server" ID="rbn_autoAddPriceNo" GroupName="autoAddPrice" />否
                        </li>
                        <li>
                            <label style="width: 120px">
                                供应商初始积分</label>
                            <asp:TextBox runat="server" ID="txt_initScore" Width="50"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="请输入初始积分"
                                ControlToValidate="txt_initScore" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txt_initScore"
                                Display="Dynamic" ErrorMessage="应为整数" ValidationExpression="\d{1,3}"></asp:RegularExpressionValidator>
                        </li>
                        <li>
                            <label style="width: 120px">
                                短信开启</label>
                            <asp:RadioButton runat="server" ID="rbn_SendSMSYes" GroupName="SendSMS" />是
                            <asp:RadioButton runat="server" ID="rbn_SendSMSNo" GroupName="SendSMS" />否 </li>
                        <li>
                            <label style="width: 120px">
                                供应商修改价格时间</label>
                            <ext:TimeField ID="ext_updatePriceDt" Width="60px" runat="server" MinTime="1:00"
                                MaxTime="23:00" Increment="30" SelectedTime="09:00" Format="H:mm" />
                        </li>
                        <li>
                            <label style="width:120px">价格审核开始时间</label>
                            <ext:TimeField ID="txtPriceCheckStartTime" Width="60px" runat="server" MinTime="1:00" MaxTime="23:00" Increment="30" SelectedTime="10:00" Format="H:mm" />
                        </li>
                        <li>
                            <label style="width:120px">价格审核结束时间</label>
                            <ext:TimeField ID="txtPriceCheckEndTime" Width="60px" runat="server" MinTime="1:00" MaxTime="23:00" Increment="30" SelectedTime="10:30" Format="H:mm" />
                        </li>
                        <li>
                            <label style="width:120px">是否启用价格审核</label>
                            <asp:CheckBox runat="server" ID="chkEnablePriceCheck" Checked="true" />
                        </li>
                        <li>
                            <label style="width: 120px">
                                无价格变动提示天数</label>
                            <asp:TextBox runat="server" ID="txt_notchangePriceDay" Width="50"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="请输入提示天数"
                                ControlToValidate="txt_notchangePriceDay" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txt_notchangePriceDay"
                                Display="Dynamic" ErrorMessage="应为整数" ValidationExpression="\d{1,3}"></asp:RegularExpressionValidator>
                        </li>
                        <li>
                            <label style="width: 120px">
                                服务扣款比例
                            </label>
                            <asp:TextBox runat="server" ID="txt_deductRatio" Text="0" Width="50"></asp:TextBox>
                            (例：0.20表示20%)
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ErrorMessage="请输入服务扣款比例"
                                ControlToValidate="txt_deductRatio" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txt_deductRatio"
                                Display="Dynamic" ErrorMessage="请输入有效的服务扣款比例" ValidationExpression="\d{1,10}\.*\d{0,2}"></asp:RegularExpressionValidator>
                        </li>
                        <li>
                            <label style="width: 120px">
                                &nbsp;&nbsp;&nbsp;
                            </label>
                            <span style="<%=power>=2?"": "display:none" %>">
                                <asp:Button runat="server" ID="btn_Save" Text="保 存" OnClick="btn_Save_Click" />
                            </span>
                            <input type="hidden" runat="server" id="hid_id" />
                            <input type="button" id="btn_Return" onclick="window.location.href='index.aspx'"
                                value="返 回" />
                        </li>
                    </ul>
                </div>
            </Body>
        </ext:Panel>
    </div>
    </form>
</body>
</html>
